#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "OLED.h"
#include "AD.h"
//#include "OLED_Font.h"
//4-1 OLED显示屏
uint16_t AD0,AD1,AD2,AD3;

int main(void){
	OLED_Init();
	AD_Init();
	OLED_ShowString(1,1,"AD0:");
	OLED_ShowString(1,1,"AD1:");
	OLED_ShowString(1,1,"AD2:");
	OLED_ShowString(1,1,"AD3:");	
	while(1){
		AD0=ADC_Get(ADC_Channel_0);
		AD1=ADC_Get(ADC_Channel_1);
		AD2=ADC_Get(ADC_Channel_2);
		AD3=ADC_Get(ADC_Channel_3);
		OLED_ShowNum(1,5,AD0,4);
		OLED_ShowNum(2,5,AD1,4);
		OLED_ShowNum(3,5,AD2,4);
		OLED_ShowNum(4,5,AD3,4);
	}
}
